package com.kaifamiao.month05.day10;

import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class S {

    public static void main(String[] args) throws Exception{

        ServerSocket serverSocket = new ServerSocket(8888);

        while (true){
            Socket socket =  serverSocket.accept();
            InputStream in = socket.getInputStream();
            System.out.println(new String(in.readAllBytes()));
            System.out.println(socket.isOutputShutdown());
        }

    }
}
